package com.wxzhou.wangzhuan.dto;

import com.wxzhou.wangzhuan.entity.RealNameInfo;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

/**
 * 用户实名绑定请求对象
 */
public class RealNameBindRequestDto extends CommonRequestDto {
    //到账方式,对应PaymentType枚举对象code

    @NotNull(message = "类型错误，2：微信到账、3支付宝到账，4：银行卡到账")
    @Min(value = 2, message = "类型错误，2：微信到账、3支付宝到账，4：银行卡到账")
    @Max(value = 4, message = "类型错误，2：微信到账、3支付宝到账，4：银行卡到账")
    private Integer paymentType;

    /**
     * 实名三要素
     */
    private RealNameInfo info;

    public RealNameBindRequestDto() {
    }

    public Integer getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
    }

    public RealNameInfo getInfo() {
        return info;
    }

    public void setInfo(RealNameInfo info) {
        this.info = info;
    }
}
